package com.ywjh.inter.entity;

import java.sql.Timestamp;

import com.ywjh.inter.utils.StrUtil;

import net.sf.json.JSONObject;

public class DietPatientEntity {
	private int id;
	private int patient_id;
	private int diet_id;
	private Timestamp add_time;
	private int status;
	private String hh;
	private String memo;
	private String type;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public int getPatient_id() {
		return patient_id;
	}
	public void setPatient_id(int patient_id) {
		this.patient_id = patient_id;
	}
	
	
	
	public int getDiet_id() {
		return diet_id;
	}
	public void setDiet_id(int diet_id) {
		this.diet_id = diet_id;
	}
	public Timestamp getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public JSONObject toJson() {
		JSONObject json=new JSONObject();
		json.put("id", this.id);
		json.put("patient_id", this.patient_id);
		json.put("diet_id", this.diet_id);
		json.put("add_time", StrUtil.getYYYYMMDD(add_time));
		json.put("hh", this.hh);
		json.put("memo", this.memo);
		json.put("type", this.type);
		return json;
	}
	public String getHh() {
		return hh;
	}
	public void setHh(String hh) {
		this.hh = hh;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	
	
}
